// JavaScript Document
function nameSpace (name,alias) {
	var arr  = name.split(".");
	var parent = "window";
	for(var i=0;i<arr.length;i++) {
		var next = parent+"."+arr[i];
		if (typeof eval(next) == "undefined") {
			eval(next +"= {}");
			parent = next;
		}
	}
	//if (typeof alias == "string" && alias!=null && alias != "" ) {
		eval(alias + " = " + name);
	//}
}



